﻿using Inovout.Gis.Geometry;
using System;

namespace Inovout.Gis
{
    public abstract class GeometryObject<T> : GeometryObject,IGeometryObject<T>
    {
        #region Constructor

        protected GeometryObject(IGeometryInfo geometryInfo)
            : base(geometryInfo)
        {
        }

        #endregion

        public new T Domain
        {
            get { return (T)base.Domain; }
        }

        protected override void BuildDomain()
        {
            base.Domain = Activator.CreateInstance(typeof(T), Row);
        }
    }
}